﻿using System.Data.Linq;
using System.Linq;

namespace WeiboPlus.Models
{
    public class WeiboPlusDataContext : DataContext
    {
        public const string ConnectionString = "Data Source=isostore:/Data.sdf";

        static WeiboPlusDataContext _instance = new WeiboPlusDataContext();
        public static WeiboPlusDataContext Instance
        {
            get
            {
                return _instance;
            }
        }

        public Table<SNSAccount> SNSAccounts;

        public Table<SNSUser> SNSUsers;

        public Table<SNSImage> SNSImages;

        public Table<SNSStatus> SNSStatuses;

        public Table<GeoInfo> GeoInfos;

        private WeiboPlusDataContext()
            : base(ConnectionString)
        {
            
        }
    }
}
